package com.motong.gongdan.vo.H5Vo.stock.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@Accessors(chain = true)
@ApiModel("出/入库单列表查询")
public class StockListQuery {

    @ApiModelProperty(value = "表名前缀", hidden = true)
    private String tablePre = "a";

    @ApiModelProperty("库存类型(0 入库,1 出库)")
    private Integer type;

    @ApiModelProperty("出入库详细类型")
    private String typeOther;

    @ApiModelProperty(value = "时间比较类型(range 范围 ,gt 大于,ge 大于等于,lt 小于,eq 小于等于,le 等于)",hidden = true)
    private String dateCompType = "range";

    @ApiModelProperty("出库时间(左 range时)")
    private Date minTime;

    @ApiModelProperty("出库时间(右 range时)")
    private Date maxTime;

    @ApiModelProperty(value = "出库时间",hidden = true)
    private Date defaultTime;

    @ApiModelProperty("排序列")
    private String orderBy = "id";

    @ApiModelProperty("排序(ASC 升序, DESC 降序)")
    private String sort;

    @ApiModelProperty("自定义筛选条件(范围两端以,号连接)")
    private Map<Integer, String> customFieldMap;

    @ApiModelProperty(value = "库存id集合", hidden = true)
    private List<Integer> stockIds;

    @ApiModelProperty("搜索出库单号/备注")
    private String searchOther;

    @ApiModelProperty("页码")
    private Integer page = 1;

    @ApiModelProperty("条数")
    private Integer limit = -1;


}
